package com.tony.spring.mode.decorator;

/**
 * demoService装饰器【热插拔的效果】
 * @author Tony
 *
 */
public class DemoServiceDecorator implements DemoService{
	
	private DemoService demoService ;
	
    public DemoServiceDecorator(DemoService demoService) {
    	this.demoService = demoService;
	}

	@Override
	public void demo() {
		demoService.demo();
		System.out.println("房子已经 装修成欧式风格了 ！！！");
	}

}
